/*
 * BeanManager.java
 *
 * Created on 1 de Fevereiro de 2007, 20:28
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package cefetpb.nav.cartesius.backingbeans;

import javax.faces.context.FacesContext;

/**
 *
 * @author RosbergLinhares
 */
public class BeanManager {
    public static Object getBean(String beanName) {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        return facesContext.getApplication().getVariableResolver().resolveVariable(facesContext, beanName);
    }
}